#include<iostream>
#include<string>
#include<vector>
using namespace std;
int n;
vector<int>mul(vector<int>a, int b)
{
	vector<int>c;
	int t = 0;
	for (int i = 0; i < a.size(); i++)
	{
		t += b * a[i];
		c.push_back(t % 10);
		t /= 10;
	}
	while (t)
	{
		c.push_back(t % 10);
		t /= 10;
	}
	return c;
}

int main()
{
	vector<int>res;
	res.push_back(1);
	cin >> n;
	while (n--)
		res = mul(res, 2);
	for (int i = res.size() - 1; i >= 0; i--)
	{
		if (i != 0)
			printf("%d", res[i]);
		else
			printf("%d", res[i] - 1);
	}
	return 0;
}